package 多线程.优先级;

public class Test {
    public static void main(String[] args) {
        Thread max = new Thread(new MaxPriority(),"高优先级线程");
        Thread min = new Thread(new MinPriority(), "低优先级线程");
        max.setPriority(8);
        min.setPriority(6);
        max.start();
        min.start();
    }
}
